package com.swas.controller;

import com.swas.entity.Perm;
import com.swas.service.PermService;
import com.swas.util.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lxysky
 */
@RestController
@RequestMapping("/perm")
public class PermController {

    @Autowired
    private PermService permService;

    @GetMapping("/selectPermAll")
    public ResultVO selectPermAll() {
        List<Perm> permList = permService.selectPermAll();
        return ResultVO.success("查询成功", permList);
    }

}
